<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/1/24
  Time: 21:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html;charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false"%>
<link rel="stylesheet" href="css/admin/page.css">
<script>
    $(function(){
        $("ul.pagination li.disabled a").click(function(){
            return false;
        });
    });
</script>
<nav>
    <ul class="pagination">
<%--        <li <c:if test="${!page.hasPreviouse}">class="disabled"</c:if>>--%>
<%--            <a  href="?start=0${page.param}" aria-label="Previous" >--%>
                <span aria-hidden="true">首页</span>
<%--            </a>--%>
<%--        </li>--%>

<%--        <li <c:if test="${!page.hasPreviouse}">class="disabled"</c:if>>--%>
<%--            <a  href="?start=${page.start-page.count}${page.param}" aria-label="Previous" >--%>
                <span aria-hidden="true">上一页</span>
<%--            </a>--%>
<%--        </li>--%>

<%--        <c:forEach begin="0" end="${page.totalPage-1}" varStatus="status">--%>
<%--            <li <c:if test="${status.index*page.count==page.start}">class="disabled"</c:if>>--%>
<%--                <a href="?start=${status.index*page.count}${page.param}"--%>
<%--                   <c:if test="${status.index*page.count==page.start}">class="page-num"</c:if>--%>
<%--                >${status.count}</a>--%>
<%--            </li>--%>
<%--        </c:forEach>--%>

<%--        <li <c:if test="${!page.hasNext}">class="disabled"</c:if>>--%>
<%--            <a href="?start=${page.start+page.count}${page.param}" aria-label="Next">--%>
                <span aria-hidden="true">下一页</span>
<%--            </a>--%>
<%--        </li>--%>

<%--        <li <c:if test="${!page.hasNext}">class="disabled"</c:if>>--%>
<%--            <a href="?start=${page.last}${page.param}" aria-label="Next">--%>
<%--                <span aria-hidden="true">尾页</span>--%>
<%--            </a>--%>
<%--        </li>--%>
    </ul>
</nav>
